package org.caw.hbase.test.integration;

import java.io.IOException;

import junit.framework.Assert;

import org.caw.hbase.test.utils.CawJettyServer;
import org.caw.hbase.test.utils.HBaseCloud;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SetupEnviornment {

	private static final Logger LOGGER = LoggerFactory.getLogger(SetupEnviornment.class);

	@BeforeClass
	public static void startup() throws IOException, InterruptedException {
		LOGGER.info("Starting HBASE cluster ...");
		HBaseCloud.startup();
		LOGGER.info("HBASE cluster is up!");
		LOGGER.info("Staring CAW web service ...");
		CawJettyServer.startup();
		LOGGER.info("CAW web service is up!");
	}

	@Test
	public void setupSuccessful() {
		Assert.assertTrue(true);
	}
}
